package com.woniuxy02;

import java.util.*;

public class Test08 {
    public static void main(String[] args) {
        //班级：学生集合
        Map<String,Student> class1 = new HashMap<>();
        class1.put("1",new Student(1,"zs",11));
        class1.put("2",new Student(2,"ls",11));
        Map<String,Student> class2 = new HashMap<>();
        class2.put("3",new Student(3,"aa",11));
        class2.put("4",new Student(4,"bb",11));
        class2.put("5",new Student(5,"ccc",11));

        Map<String, Map<String,Student>> school=new HashMap<>();
        school.put("class001",class1);
        school.put("class002",class2);

        System.out.println(school.get("class001").get("1"));
        System.out.println(school.get("class002").get("3"));
    }
}
